import { defineStore } from 'pinia'

export enum NumberWord {
    One = 1,
    Two = 2,
    Three = 3,
    Four = 4,
    Five = 5,
    Six = 6,
    Seven = 7,
    Eight = 8,
    Nine = 9
}

export const userStore = defineStore('store', {
    state: () => ({
        mode: true,
        expand: false,
        full: false,
    })
})
export const serialStore = defineStore('serial', {
    state: () => ({
        serialPort: [],
        baudRate: [
            300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 56000,
            57600, 115200, 128000, 256000, 460800, 512000, 750000, 921600, 1500000
        ],
        dataBits: [
            5, 6, 7, 8
        ],
        stopBits: [
            1, 2
        ],
        parityBits: [
            'None', 'Odd', 'Even'
        ],
        serial: '',
        baud: 115200,
        data: 8,
        parity: 'None',
        stop: 1
    })
})

